package ink.carnation.imtalk.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created with IDEA
 * author:桂乙侨
 * Date:2020/9/29
 * Time:17:11
 * IP限制访问次数限制注解，使用在方法上
 */

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface IPLimit {

    /**
     * 时间段内允许访问最大次数
     * @return
     */
    int count() default  Integer.MAX_VALUE;


    /**
     * 时间段大小，单位为ms
     * @return
     */
    long time() default 60;

}
